package com.eascs.message.entiy;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the wf_message database table.
 * 
 */
@Entity
@Table(name="o2o_message")
@NamedQuery(name="O2OMessage.findAll", query="SELECT w FROM O2OMessage w")
public class O2OMessage implements Serializable {
	private static final long serialVersionUID = 1L;
	
	/*短信类型 : 放款日当天*/
	public static final String MESSAGE_TYPE_FK="FK";
	/*短信类型 : 付息日前两天*/
	public static final String MESSAGE_TYPE_FX2="FX2";
	/*短信类型 : 贷款到期日前两天*/
	public static final String MESSAGE_TYPE_DK2="DK2";
	/*短信类型 : 贷款到期日前15天*/
	public static final String MESSAGE_TYPE_DK15="DK15";
	/*短信类型 : 逾期的第二天发送*/
	public static final String MESSAGE_TYPE_YQ2="YQ2";
	/*平台类型 : old 老的o2o平台*/
	public static final String PLATFORM_TYPE_OLD ="OLD";
	/*平台类型 : new 老的o2o平台*/
	public static final String PLATFORM_TYPE_NEW="NEW";
	/*状态 : 0 未插入短信表*/
	public static final String MESSAGE_STATUS_0="0";
	/*状态 : 1已插入短信表*/
	public static final String MESSAGE_STATUS_1="1";
	
	/*短信类型 : 内审结束时发给同事*/
	public static final String MESSAGE_TYPE_NS_NED_TS="NS_END_T";
	
	/*短信类型 : 内审结束时发给客户*/
	public static final String MESSAGE_TYPE_NS_NED_KH="NS_END_K";
	
	@Id
	@Column(name="message_id")
	private String messageId;

	private String content;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="create_time")
	private Date createTime;

	@Column(name="receive_name")
	private String receiveName;

	@Column(name="receive_telphone")
	private String receiveTelphone;

	@Column(name="send_name")
	private String sendName;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="send_time")
	private Date sendTime;

	@Column(name="send_type")
	private String sendType;
	
	@Column(name="message_type")
	private String messageType;
	
	@Column(name="platform_type")
	private String platformType;
	
	@Column(name="wf_message_id")
	private String wfMessageId;
	
	@Column(name="loanapplyno")
	private String loanapplyno;
	
	@Column(name="relevance_id")
	private String relevanceId;


	public O2OMessage() {
	}

	public String getMessageId() {
		return this.messageId;
	}

	public void setMessageId(String messageId) {
		this.messageId = messageId;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getReceiveName() {
		return this.receiveName;
	}

	public void setReceiveName(String receiveName) {
		this.receiveName = receiveName;
	}

	public String getReceiveTelphone() {
		return this.receiveTelphone;
	}

	public void setReceiveTelphone(String receiveTelphone) {
		this.receiveTelphone = receiveTelphone;
	}

	public String getSendName() {
		return this.sendName;
	}

	public void setSendName(String sendName) {
		this.sendName = sendName;
	}

	public Date getSendTime() {
		return this.sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public String getSendType() {
		return this.sendType;
	}

	public void setSendType(String sendType) {
		this.sendType = sendType;
	}

	public String getMessageType() {
		return messageType;
	}

	public void setMessageType(String messageType) {
		this.messageType = messageType;
	}
	
	@SuppressWarnings("unused")
	public String toString(){
		String model = "";
		
		return null;
	}

	public String getPlatformType() {
		return platformType;
	}

	public void setPlatformType(String platformType) {
		this.platformType = platformType;
	}

	public String getWfMessageId() {
		return wfMessageId;
	}

	public void setWfMessageId(String wfMessageId) {
		this.wfMessageId = wfMessageId;
	}

	public String getLoanapplyno() {
		return loanapplyno;
	}

	public void setLoanapplyno(String loanapplyno) {
		this.loanapplyno = loanapplyno;
	}

	public String getRelevanceId() {
		return relevanceId;
	}

	public void setRelevanceId(String relevanceId) {
		this.relevanceId = relevanceId;
	}

}